/* 个人中心页面样式 */

/* 加载状态样式 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
}

.loading-spinner {
    font-size: 40px;
    color: #1DB954;
    margin-bottom: 20px;
}

/* 未登录提示样式 */
.login-required {
    text-align: center;
    padding: 60px 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin: 40px auto;
    max-width: 500px;
}

.login-required h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #fff;
}

.login-required p {
    font-size: 16px;
    color: #b3b3b3;
    margin-bottom: 30px;
}

.login-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.login-button {
    display: inline-block;
    background-color: #1DB954;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.login-button:hover {
    transform: scale(1.05);
    background-color: #1ed760;
}

.login-button.outline {
    background-color: transparent;
    border: 2px solid #fff;
}

.login-button.outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 高级会员升级提示 */
.premium-banner {
    background: linear-gradient(135deg, #450af5, #c4efd9);
    border-radius: 8px;
    padding: 24px;
    margin: 0 32px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.premium-banner-content h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #fff;
}

.premium-banner-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.premium-banner-button {
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.premium-banner-button:hover {
    transform: scale(1.05);
}

/* 用户个人资料样式 */
.profile-header {
    display: flex;
    align-items: flex-end;
    margin-bottom: 32px;
    padding: 32px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
}

.profile-type {
    font-size: 14px;
    color: #fff;
    margin-bottom: 8px;
}

.profile-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 40px;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex-grow: 1;
}

.profile-name {
    font-size: 48px;
    font-weight: 900;
    margin: 8px 0;
}

.profile-stats {
    display: flex;
    gap: 24px;
    margin: 16px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
}

.stat-label {
    font-size: 14px;
    color: #b3b3b3;
}

.profile-actions {
    display: flex;
    gap: 16px;
    margin: 24px 0 8px;
}

.profile-btn {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-btn:hover {
    border-color: #fff;
    transform: scale(1.05);
}

.profile-btn.premium-btn {
    background-color: #1DB954;
    border: none;
}

.profile-btn.premium-btn:hover {
    background-color: #1ed760;
}

/* 导航选项卡样式 */
.profile-navigation {
    margin: 0 32px 32px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-nav-tabs {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.profile-nav-tab {
    color: #b3b3b3;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 20px;
}

.profile-nav-tab:hover {
    color: #fff;
}

.profile-nav-tab.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* 内容区域样式 */
.profile-section {
    margin-bottom: 40px;
    padding: 0 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
}

.section-action {
    color: #b3b3b3;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.section-action:hover {
    color: #fff;
    text-decoration: underline;
}

/* 播放列表网格 */
.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-gap: 24px;
}

/* 收藏歌曲列表样式 */
.favorites-list {
    width: 100%;
}

.track-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.track-row:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.track-number {
    width: 30px;
    text-align: center;
    color: #b3b3b3;
}

.track-info {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.track-image {
    width: 40px;
    height: 40px;
    margin-right: 16px;
}

.track-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-details {
    flex-grow: 1;
}

.track-name {
    font-weight: 500;
}

.track-artist {
    font-size: 14px;
    color: #b3b3b3;
}

.track-album {
    width: 30%;
    color: #b3b3b3;
    font-size: 14px;
}

.track-duration {
    width: 60px;
    text-align: right;
    color: #b3b3b3;
}

/* 空内容提示 */
.empty-content {
    text-align: center;
    padding: 40px 0;
}

.empty-message {
    color: #b3b3b3;
    margin-bottom: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-avatar {
        margin-right: 0;
        margin-bottom: 24px;
    }

    .profile-stats {
        justify-content: center;
    }

    .profile-actions {
        justify-content: center;
    }

    .premium-banner {
        flex-direction: column;
        text-align: center;
    }

    .premium-banner-content {
        margin-bottom: 20px;
    }

    .track-album {
        display: none;
    }
}

@media (max-width: 480px) {
    .profile-nav-tabs {
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .profile-name {
        font-size: 36px;
    }

    .playlists-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}
